package cn.stylefeng.guns.sys.modular.dataQualityCheck.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.dataQualityCheck.entity.QualityCheck;
import cn.stylefeng.guns.sys.modular.dataQualityCheck.model.params.QualityCheckParam;
import cn.stylefeng.guns.sys.modular.dataQualityCheck.model.result.QualityCheckResult;
import cn.stylefeng.guns.sys.modular.metadata.model.params.MetadataParam;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 数据质量检查 服务类
 * </p>
 *
 * @author author
 * @since 2020-11-18
 */
public interface QualityCheckService extends IService<QualityCheck> {

    /**
     * 新增
     *
     * @author author
     * @Date 2020-11-18
     */
    void add(QualityCheckParam param);

    /**
     * 删除
     *
     * @author author
     * @Date 2020-11-18
     */
    void delete(QualityCheckParam param);

    /**
     * 更新
     *
     * @author author
     * @Date 2020-11-18
     */
    void update(QualityCheckParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author author
     * @Date 2020-11-18
     */
    QualityCheckResult findBySpec(QualityCheckParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author author
     * @Date 2020-11-18
     */
    List<QualityCheckResult> findListBySpec(QualityCheckParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author author
     * @Date 2020-11-18
     */
     LayuiPageInfo findPageBySpec(QualityCheckParam param);


    /**
     * 质量检查
     * @param param
     */
    int qualityCheckByMetadata(MetadataParam param);

    /**
     * 退回
     * @param id
     * @return
     */
    int returnQualityCheck(Integer id);


    /**
     * 通过元数据查询部门
     * @param metadataName
     * @return
     */
    List<String> queryDepartmentInfo(String metadataName);

}
